package com.ruoyi.web.inter;

import com.ruoyi.common.inter.HttpHostProvider;
import com.ruoyi.web.core.config.ConfigLoader;
import org.springframework.stereotype.Component;

@Component
public class ConfigHttpHostProvider implements HttpHostProvider {

    @Override
    public String getHttpHostOfJd() {
        return ConfigLoader.getConfig().getHttpHostJd();
    }

    @Override
    public String getHttpHostOfHwy() {
        return ConfigLoader.getConfig().getHttpHostHwy();
    }

    @Override
    public String getHttpHostOfHg() {
        return ConfigLoader.getConfig().getHttpHostHg();
    }

    @Override
    public String getHttpHostOfZyt() {
        return ConfigLoader.getConfig().getHttpHostZyt();
    }
}
